home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM 1995 Fall / PD-ROM F95.toast / Telecom / Terminal Programs / Terminal 2.0.1 ƒ / Hdrs / Interp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-11-19  |  811 b   |  28 lines  |  [TEXT/ttxt]

  1. /*
  2.     Terminal 2.0
  3.     "Interp.h"
  4. */
  5.  
  6. typedef long INTEGER;        /* Pointers and integers are mixed */
  7.  
  8. /* ----- Intrinsic function table (provided by shell) ------------------ */
  9.  
  10. typedef INTEGER (*IFUNC)();
  11.  
  12. typedef struct {
  13.     Byte *fname;
  14.     IFUNC fn;    /* Parameter is (INTEGER *) */
  15. } INTRINSIC;
  16.  
  17. /* ----- Functions provided by interpreter ----------------------------- */
  18.  
  19. void SI_Load(INTRINSIC *, Byte *, long);    /* Load and link */
  20. INTEGER SI_Interpret(void);                    /* Start the interpreter */
  21. INTEGER SI_stack(INTEGER *);                /* Remaining stack space */
  22.  
  23. /* ----- Functions provided by the shell ------------------------------- */
  24.  
  25. short SI_GetSource(void);                    /* Get next char from source */
  26. void SI_UngetSource(short);                    /* char not needed now */
  27. void SI_Error(short, Byte *, short);        /* Error from interpreter */
  28.